const home = {
  namespaced: true, // 命名空间
  state () {
    return {
      homeCount: 0
    }
  },
  mutations: {
    incrementhome (state, payload) {
      state.homeCount += payload
    },
    decrementy (state, payload) {
      state.homeCount -= payload
    }
  },
  actions: {
    incrementAction ({ commit }, payload) {
      commit('decrementy', payload)
    }
  },
  getters: {
    homedubleCount (state, getters, rootState, rootGetters) {
      return state.homeCount + 100
    }
  },
  modules: {}
}
export default home
